import { Button } from "antd";
import i18n from "i18next";
import { Translation } from "react-i18next";
function Language() {
  return (
    <div>
      <Translation>{(t) => <h1>{t("Welcome to React")}</h1>}</Translation>
      <Button onClick={() => i18n.changeLanguage("ch")}>切换</Button>
    </div>
  );
}

export default Language;
